package com.nbc.car.biz.dto;

import com.nbc.car.biz.enums.UserBizEnum;

/**
 * Created by nipin on 16/7/23.
 */
public class UserBizDTO<T> {
    private int code;
    private T data;
    private  String msg;



    public UserBizDTO(T data, UserBizEnum enums){
        this.data = data;
        this.code = enums.getState();
        this.msg = enums.getStateInfo();
    }

    public UserBizDTO(UserBizEnum enums){
        this.code = enums.getState();
        this.msg = enums.getStateInfo();
    }
    

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
